Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODCanvas


GetGXViewport

Mac OS

The GetGXViewport method returns the QuickDraw GX view port drawing structure for this canvas.

ODPlatformCanvas GetGXViewport ();
return value
A 32-bit value identifying the QuickDraw GX view port object for this canvas. You must cast the return value to type gxViewPort.
DISCUSSION
If you are using QuickDraw GX for imaging, you can call this method in your part's Draw method or whenever you need to draw anything into a facet.

If this canvas has a QuickDraw GX view port drawing structure and QuickDraw GX is installed, this method returns that view port. If this canvas has a QuickDraw window drawing structure, this method generates a new QuickDraw GX view port for this canvas using the QuickDraw drawing structure; the method then returns the new QuickDraw GX view port.

EXCEPTIONS
kODErrInvalidGraphicsSystem
This implementation of OpenDoc does not support QuickDraw GX, QuickDraw GX is not installed or available, or this canvas has no QuickDraw GX or QuickDraw drawing structure.
SEE ALSO
The ODCanvas::GetQDPort method (page 73).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help